package cn.iocoder.yudao.module.xkfz.controller.admin;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.module.xkfz.domain.entity.operationalPerformance.AcademicMisconduct;
import cn.iocoder.yudao.module.xkfz.domain.excel.entity.AchievementAward;
import cn.iocoder.yudao.module.xkfz.domain.excel.po.AchievementAwardPo;
import cn.iocoder.yudao.module.xkfz.domain.po.operationalPerformance.AcademicMisconductPo;
import cn.iocoder.yudao.module.xkfz.service.excel.AchievementAwardService;
import cn.iocoder.yudao.module.xkfz.service.operationalPerformance.AcademicMisconductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

/**
 * @Description 标准
 * @Author ZWC
 * @Date 2024/5/13 13:38
 */
@RestController
@RequestMapping("academicMisconduct")
public class AcademicMisconductController {

    @Autowired
    private AcademicMisconductService academicMisconductService;

    @GetMapping("selectPage")
    public CommonResult<PageResult<AcademicMisconduct>>  selectPage (AcademicMisconductPo reqVO){
        return success(academicMisconductService.selectPage(reqVO));
    }
    @PostMapping("insert")
    public CommonResult<Boolean> insert(AcademicMisconduct academicMisconduct){
        return success(academicMisconductService.insert(academicMisconduct));
    }
    @PostMapping("update")
    public CommonResult<Boolean> update(AcademicMisconduct academicMisconduct){
        return success(academicMisconductService.update(academicMisconduct));
    }

    @PostMapping("delete")
    public CommonResult<Boolean> delete(String id){
        return success(academicMisconductService.delete(id));
    }
}
